home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1989 / Jul 89 / W0132-Re Setting Cursor -Jul89 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.1 KB  |  29 lines  |  [TEXT/GEOL]

  1. Item    1381180                         27-July-89        15:59
  2.  
  3. From:   BIANCHI1                        Bianchi, Curt
  4.  
  5. To:     D2086                           Efficient Field Svc, C Faith, PRT
  6.  
  7. cc:     MACAPP.TECH$                    MACAPP Tech
  8.  
  9. Sub:    Re: Setting Cursor  with keys
  10.  
  11. Eric (via Curtis),
  12.  
  13. A while back, there was a question having to do with setting the shape of the
  14. cursor based on which modifier keys are pressed.
  15.  
  16. The problem is that MultiFinder does not generate an event when a modifier key
  17. is pressed (i.e., shift, option, command, control), though of course an event
  18. is generated for other keys.  Thus, control is not returned to your application
  19. when a modifier key is pressed, even if your application in the foreground.
  20. The way around this is to use an fIdleFreq of zero for whatever view changes
  21. the cursor based on the modifier keys.  You will then have to look at the keys
  22. yourself with the Toolbox call GetKeys, and then set the cursor accordingly.
  23. This will have to be done in the view's DoIdle method as the DoSetCursor method
  24. will not get called unless the mouse actually moves.
  25.  
  26. Curt Bianchi
  27. Apple Computer
  28.  
  29.